package collection.generic;

import java.util.ArrayList;

class Node<T> {
	T value;
	Node<T> father;
	ArrayList<Node<T>> children;
	
	public Node(T value, Node<T> father) {
		this.value = value;
		this.father = father;
		children = new ArrayList<>();
	}
	
	public void addChild(Node<T> child){
		children.add(child);
	}
}
